﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F89 RID: 3977
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicUnitInfo : IMessage<RogueMagicUnitInfo>, IMessage, IEquatable<RogueMagicUnitInfo>, IDeepCloneable<RogueMagicUnitInfo>, IBufferMessage
	{
		// Token: 0x17003266 RID: 12902
		// (get) Token: 0x0600B224 RID: 45604 RVA: 0x001E1431 File Offset: 0x001DF631
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicUnitInfo> Parser
		{
			get
			{
				return RogueMagicUnitInfo._parser;
			}
		}

		// Token: 0x17003267 RID: 12903
		// (get) Token: 0x0600B225 RID: 45605 RVA: 0x001E1438 File Offset: 0x001DF638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicUnitInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003268 RID: 12904
		// (get) Token: 0x0600B226 RID: 45606 RVA: 0x001E144A File Offset: 0x001DF64A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicUnitInfo.Descriptor;
			}
		}

		// Token: 0x0600B227 RID: 45607 RVA: 0x001E1451 File Offset: 0x001DF651
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitInfo()
		{
		}

		// Token: 0x0600B228 RID: 45608 RVA: 0x001E1459 File Offset: 0x001DF659
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitInfo(RogueMagicUnitInfo other) : this()
		{
			this.magicUnitLevel_ = other.magicUnitLevel_;
			this.magicUnitId_ = other.magicUnitId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B229 RID: 45609 RVA: 0x001E148A File Offset: 0x001DF68A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicUnitInfo Clone()
		{
			return new RogueMagicUnitInfo(this);
		}

		// Token: 0x17003269 RID: 12905
		// (get) Token: 0x0600B22A RID: 45610 RVA: 0x001E1492 File Offset: 0x001DF692
		// (set) Token: 0x0600B22B RID: 45611 RVA: 0x001E149A File Offset: 0x001DF69A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MagicUnitLevel
		{
			get
			{
				return this.magicUnitLevel_;
			}
			set
			{
				this.magicUnitLevel_ = value;
			}
		}

		// Token: 0x1700326A RID: 12906
		// (get) Token: 0x0600B22C RID: 45612 RVA: 0x001E14A3 File Offset: 0x001DF6A3
		// (set) Token: 0x0600B22D RID: 45613 RVA: 0x001E14AB File Offset: 0x001DF6AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MagicUnitId
		{
			get
			{
				return this.magicUnitId_;
			}
			set
			{
				this.magicUnitId_ = value;
			}
		}

		// Token: 0x0600B22E RID: 45614 RVA: 0x001E14B4 File Offset: 0x001DF6B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicUnitInfo);
		}

		// Token: 0x0600B22F RID: 45615 RVA: 0x001E14C2 File Offset: 0x001DF6C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicUnitInfo other)
		{
			return other != null && (other == this || (this.MagicUnitLevel == other.MagicUnitLevel && this.MagicUnitId == other.MagicUnitId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B230 RID: 45616 RVA: 0x001E1500 File Offset: 0x001DF700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MagicUnitLevel != 0U)
			{
				num ^= this.MagicUnitLevel.GetHashCode();
			}
			if (this.MagicUnitId != 0U)
			{
				num ^= this.MagicUnitId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B231 RID: 45617 RVA: 0x001E1558 File Offset: 0x001DF758
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B232 RID: 45618 RVA: 0x001E1560 File Offset: 0x001DF760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B233 RID: 45619 RVA: 0x001E156C File Offset: 0x001DF76C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MagicUnitId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.MagicUnitId);
			}
			if (this.MagicUnitLevel != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.MagicUnitLevel);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B234 RID: 45620 RVA: 0x001E15C8 File Offset: 0x001DF7C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MagicUnitLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MagicUnitLevel);
			}
			if (this.MagicUnitId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MagicUnitId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B235 RID: 45621 RVA: 0x001E1620 File Offset: 0x001DF820
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicUnitInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MagicUnitLevel != 0U)
			{
				this.MagicUnitLevel = other.MagicUnitLevel;
			}
			if (other.MagicUnitId != 0U)
			{
				this.MagicUnitId = other.MagicUnitId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B236 RID: 45622 RVA: 0x001E1670 File Offset: 0x001DF870
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B237 RID: 45623 RVA: 0x001E167C File Offset: 0x001DF87C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.MagicUnitLevel = input.ReadUInt32();
					}
				}
				else
				{
					this.MagicUnitId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400480F RID: 18447
		private static readonly MessageParser<RogueMagicUnitInfo> _parser = new MessageParser<RogueMagicUnitInfo>(() => new RogueMagicUnitInfo());

		// Token: 0x04004810 RID: 18448
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004811 RID: 18449
		public const int MagicUnitLevelFieldNumber = 10;

		// Token: 0x04004812 RID: 18450
		private uint magicUnitLevel_;

		// Token: 0x04004813 RID: 18451
		public const int MagicUnitIdFieldNumber = 3;

		// Token: 0x04004814 RID: 18452
		private uint magicUnitId_;
	}
}
